<?php
require_once('../phplib/include.inc.php');
require_once('../phplib/util/CheckLogin.inc.php');

class Admin_Savesubhome{
	public function DoSave(){
		$R = $_REQUEST;		
		$sell_hotline = $R['sell_hotline'];
		$technology_email = $R['technology_email'];
		$business_man = $R['business_man'];
		$train_hotline = $R['train_hotline'];
		$daynight_hotline = $R['daynight_hotline'];
		$train_contact_man = $R['train_contact_man'];
		$train_email = $R['train_email'];
		$train_fax = $R['train_fax'];
		$train_postcode = $R['train_postcode'];
		$train_qq = $R['train_qq'];
		$train_address = $R['train_address'];
		$arr = array(
						sell_hotline => $sell_hotline,
						technology_email => $technology_email,
						business_man => $business_man,
						train_hotline => $train_hotline,
						daynight_hotline => $daynight_hotline,
						train_contact_man => $train_contact_man,
						train_email => $train_email,
						train_fax => $train_fax,
						train_postcode => $train_postcode,
						train_qq => $train_qq,
						train_address => $train_address
					);
		$info = serialize($arr);		
		$sql = "UPDATE subhome SET s_content={0} WHERE s_name={1}";
		$db = getDb();
		if(!$db->Execute($sql,array($info,'联系信息'))) PageBase::Error("unknow error");
		PageBase::Go("../admin/contactinfo.php");
	}
}
$a = new Admin_Savesubhome();
$a->DoSave();
?>